import Layout from "@/layout";

//商品管理
export default {
  path: "/goods-manager",
  component: Layout,
  redirect: "noRedirect",
  name: "商品管理",
  meta: { title: "商品管理", icon: "dashboard" },
  children: [
    {
      path: "/goods-category-update",
      name: "编辑商品分类",
      hidden: true,
      component: () => import("@/views/goods/category/save"),
      meta: { title: "编辑商品分类", icon: "dashboard", inner: true }
    },
    {
      path: "/goods-category",
      name: "商品分类管理",
      component: () => import("@/views/goods/category/list.vue"),
      meta: { title: "商品分类管理", icon: "dashboard" }
    },
    {
      path: "/goods-update",
      name: "编辑商品",
      hidden: true,
      component: () => import("@/views/goods/goods/save"),
      meta: { title: "编辑商品", icon: "dashboard", inner: true }
    },
    {
      path: "/goods",
      name: "商品管理",
      component: () => import("@/views/goods/goods/list.vue"),
      meta: { title: "商品管理", icon: "dashboard" }
    },
    {
      path: "/goods-index-update",
      name: "编辑首页商品",
      hidden: true,
      component: () => import("@/views/goods/index/save"),
      meta: { title: "编辑首页商品", icon: "dashboard", inner: true }
    },
    {
      path: "/goods-index",
      name: "首页商品管理",
      component: () => import("@/views/goods/index/list.vue"),
      meta: { title: "首页商品管理", icon: "dashboard" }
    },
  ]
};
